package cn.pugle.ormtest.mybatis.dao;

import cn.pugle.ormtest.mybatis.bean.CustomerBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author tzp
 * @date 2017/12/22
 */
@Mapper
@Repository
public interface CustomerMapper {
    @Select("SELECT id,name FROM st_customer1 WHERE id = #{id}")
    CustomerBean selectOne(@Param("id") Long id);

    CustomerBean selectOne1(@Param("id") Long id);

//    List<Customer> queryList();
}
